<html>
<head>
<script type="text/javascript">
$('#rsvp').ajaxForm(function() { 
	parent.thickboxDone();
});
</script>
<style type="text/css">
input[type="submit"] {
	width: auto;
	border: 2px solid #A9A537;
	color: #FCFBDC;
	background: #60451A !important;
}

input[type="submit"]:hover {
	border: 2px solid #A9A537;
	color: #FCFBDC;
	background: #A9A537 !important;
}

ol{
	margin: 0;
	padding: 0 1em;
	list-style-type: none;
}
</style>
</head>
<body>
<?=$this->validation->error_string;?>

<form id="rsvp" action="<?=site_url('calendar/createItem')?>" method="post">
	<ol>
		<li><label for="name">item</label>
			<input type="text" name="name" value="<?=$this->validation->name;?>"/></li>
		<li><input type="submit" name="" value="publish"/></li>
		<input type="hidden" name="event_id" value="<?=$this->uri->segment(3)?>">
		<input type="hidden" name="redirect" value="<?=$this->uri->segment(4)?>">
	</ol>
</form>
</body>
</html>
